
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" import="com.davinci.freemarket.dataModelLayer.model.PublicationModel" import = "java.util.ArrayList" errorPage="" %>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--[if IE]><![endif]-->
<!--[if lt IE 7 ]> <html lang="es" class="no-js ie6"> <![endif]--> 
<!--[if IE 7 ]>    <html lang="es" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="es" class="no-js ie8"> <![endif]--> 
<!--[if IE 9 ]>    <html lang="es" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="es" class="no-js"> <!--<![endif]-->
<head>
<!-- Avoid script blocking -->
	<script></script>
	<meta charset="utf-8"/>
	<title>Registro de Usuario</title>
	<!-- Chico-UI Core Style Sheet -->
	<link rel="stylesheet" href="./src/ml/css/chico-min-0.9.1.css"/>
	<link rel="stylesheet" href="./src/ml/css/chico-mesh.css"/>
	
	<!--[if lt IE 7 ]>
		<script src="./libs/js/dd_belatedpng.js"></script>
		<script> DD_belatedPNG.fix('img, .ico'); //fix any <img> or .ico background-images </script>
	<![endif]--> 
</head>
<body>
<div class="ch-g1">
    <div class="box">
        Header        
    </div>
</div>
<div class="ch-g1">
    <div class="ch-g1-4">
        <div class="box leftcolumn">
           <h3>Categorias</h3>
        </div>
    </div>
    <div class="ch-g3-4">
    

	<div class="box">
			<table class="datagrid" summary="Listado de cobros en MercadoPago">
				<caption>Table</caption>
				<thead>
					<tr>
						<th scope="col"><input type="checkbox" name="mycheckall"/></th>
						<th scope="col">Datos de inicio</th>
						<th scope="col">Titutlo</th>
						<th scope="col" class="selected">Descripcion<span class="asc">(asc)</span></th>
						<th scope="col">Categorìa</th>
						<th scope="col">Mas Data</th>
						<th scope="col">Valor</th>
						<th scope="col">Status de la operación</th>
						<th scope="col">Acciones</th>
					</tr>
				</thead>
				<tbody>
						<% 
						ArrayList<PublicationModel> publications = (ArrayList<PublicationModel>) session.getAttribute("publications");
						for(PublicationModel publication : publications){
						%>
					<tr class="row">
						<td scope="row"><input type="checkbox" name="mycheck" checked="checked"/></td>
						<td>02/04/2011</td>
						<td><a href="servlet/GetPublicationServlet?publish_identifier=<%out.println(publication.getPublicationId());%>"><%out.println(publication.getTitle());%></a></td>
						<td><a href="servlet/GetPublicationServlet?publish_identifier=<%out.println(publication.getPublicationId());%>"><%out.println(publication.getDetails()); %></a></td>
						<td><a href="servlet/GetPublicationServlet?publish_identifier=<%out.println(publication.getPublicationId());%>"><%out.println(publication.getCategory()); %></a></td>
						<td>Compras en MercadoLibre</td>
						<td><span class="value"><%out.println(publication.getPrice());%></span></td>
						<td>Pendiente de pago</td>
						<td>select</td>
					</tr>
					<%}%>
				</tbody>
			</table>
	</div>
	
    </div>
</div>
<div class="ch-g1">
    <div class="box">
         <p><a href="/index.php">Home</a> | <a href="/publicacion.html">Publicación</a> | <a href="/mensajes.html">Mensajes</a> | <a href="/registracion.html">Registración</a> | <a href="/contacto.php">Contacto</a></p>
  <p>El uso de este sitio web implica la aceptación de los Términos y   Condiciones</a> y de las Políticas de   Privacidad</a> de Free Market S.A</p>
  <p>Copyright © 2010-2011 Free Market S.A.</p>
    </div>
</div>
	<script src="http://code.jquery.com/jquery-1.7.js"></script>
	<script src="src/js/chico-0.9.1.js?debug=true"></script>
	<script src="./src/plugins/gallery/chico.gallery.js"></script>
</body>
</html>
